home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 005a / fc102b.zip / FCMOVETO.BAT < prev    next >
DOS Batch File  |  1993-01-16  |  3KB  |  90 lines

  1. @Echo Off
  2. If x%1==x Goto HelpMe
  3. If %1==supercalifragilisticexpialidocious Goto Cleanup
  4.  
  5. Echo FCMOVETO - FastChat Moving Utility
  6. Echo Copyright 1992 Peter Hebert
  7. Echo.
  8. Echo FastChat will be moved to %1.  If this not acceptable, please hit
  9. Echo Ctrl-Break.  Otherwise...
  10. Echo.
  11. Pause
  12. If Not %OS%==DRDOS Echo.
  13.  
  14. :Test
  15. Md %1 > Nul
  16. Rem > __fc__.ts_
  17. Copy __fc__.ts_ %1 > Nul
  18. If Not Exist %1\__fc__.ts_ Goto ParmErr
  19. Del __fc__.ts_ > Nul
  20. Del %1\__fc__.ts_ > Nul
  21. Rem > %1__fc__.ts_
  22. If Not Exist *.Ts_ Goto ParmErr
  23. Del *.Ts_
  24.  
  25. :DoIt
  26. For %%F in (fc_inst.exe install.doc fastchat.doc docutil.exe read102.b fcmoveto.bat) do Copy %%F %1 > Nul
  27. For %%F in (fc_inst.exe install.doc fastchat.doc docutil.exe read102.b fcmoveto.bat) do If Not Exist %1\%%F Goto CopyErr
  28. For %%F in (fc_inst.exe install.doc fastchat.doc docutil.exe read102.b) do Del %%F > Nul
  29. %1\%0 supercalifragilisticexpialidocious %1
  30.  
  31. :CleanUp
  32. Del FcMoveTo.Bat
  33. Cd %2 > Nul
  34. Echo FastChat successfully moved.
  35. Goto Xit
  36.  
  37. :CopyErr
  38. Echo Error copying files!  Bad pathname or insufficient disk space?
  39. Echo.
  40. Goto HelpMe
  41.  
  42. :ParmErr
  43. If Exist *.Ts_ Del *.Ts_
  44. If Exist %1*.Ts_ Del %1*.Ts_
  45. Echo Parameter specification error!  Remember, no trailing backslash!
  46. Echo.
  47. Goto RealHlp
  48.  
  49. :HelpMe
  50. Echo.
  51. Echo FCMOVETO ────────────────────────────────────────────── FastChat Moving Utility
  52. Echo.
  53. :RealHlp
  54. Echo Syntax:
  55. Echo.
  56. Echo            FCMOVETO (pathname)
  57. Echo.
  58. Echo Where:
  59. Echo.
  60. Echo            (pathname)       is the name of the path to move to
  61. Echo.
  62. Echo Notes:
  63. Echo.
  64. Echo            FcMoveTo is a simple batch file for moving an uninstalled copy
  65. Echo            of FastChat to a different directory.  Because FastChat must be
  66. Echo            installed from the directory that it will permanently reside in,
  67. Echo            it must be moved it you de-archived it into a ramdisk or an
  68. Echo            other directory.
  69. Echo.
  70. Echo            FcMoveTo performs this move.  The pathname given to FcMoveTo
  71. Echo            should be fully qualified, WITHOUT a trailing backslash.  The
  72. Echo            The directory will be made if it is not present.
  73. Echo.
  74. Pause
  75. If Not %OS%==DRDOS Echo.
  76. Echo Examples:
  77. Echo.
  78. Echo            FcMoveTo C:\Max\Fc
  79. Echo.
  80. Echo            Would move the FastChat installation bundle to the directory
  81. Echo            C:\Max\Fc, making it if it is not present.
  82. Echo.
  83. Echo            FcMoveTo D:\Ra\FastChat
  84. Echo.
  85. Echo            Would move the FastChat installation bundle to C:\Ra\FastChat.
  86. Echo.
  87.  
  88. :Xit
  89.  
  90.